package main.java.com.blog.service;

import com.blog.dao.ForwordMapper;
import com.blog.entity.Forword;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Admin on 2017/6/12.
 */
@SuppressWarnings("ALL")
@Service("ForwordService")
public class ForwordServiceImpl implements ForwordService {

    @Autowired
    ForwordMapper forwordMapper;

    @Override
    public int addForword(Forword forword) {
        return forwordMapper.insertSelective(forword);
    }

    @Override
    public List<Forword> findAllForword() {
        return forwordMapper.selectAllForword();
    }
}
